package dao

import (
	"app/internal/struct/store"
)

func (d *Dao) StoreRegister(obj store.Register) error {

	return d.db.Insert(obj)
}

func (d *Dao) StoreUser(obj store.User, cond store.User) error {

	return d.db.SyncRecord(obj, cond)
}

func (d *Dao) StoreHeart(obj store.Heart, cond store.Heart) error {

	return d.db.SyncRecord(obj, cond)
}

func (d *Dao) StoreLicense(obj store.License) error {

	return d.db.Insert(obj)
}
